<template>
	<view>
		<!-- <web-view src="http://172.16.200.188:8081/#/pages/picture/explain"></web-view> -->
		<web-view src="http://172.16.200.188:5500/peerBMore.html"></web-view>
	</view>
</template>

<script>
	export default{
		onLoad() {
			// uni.navigateTo({
			// 	url: '/pages/picture/explain'
			// })
			this.audioPusher()
		},
		methods:{
			audioPusher(){
				const currentWebview = this.$mp.page.$getAppWebview()
				let styles = {    
					url:'rtmp://47.104.203.80:1935/live/rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk',    
					top:'0',    
					left:'0px',    
					width: '1%',    
					height: '1%',    
					position: 'static',
				}
				let a = 'enable-camera'
				styles[a] = false
				var pusher = plus.video.createLivePusher("", styles);
				
				currentWebview.append(pusher);  
				
				pusher.start(res => console.log(res), err => console.log(err))
				// pusher.addEventListener('statechange', ret => {console.log(ret, 'statechange')})
				// pusher.addEventListener('netstatus', ret => {console.log(ret, 'netstatus')})
				// pusher.addEventListener('error', ret => {console.log(ret, 'error')})
				
				
				console.log(pusher,'pusherpusherpusher')
			},
		}
	}
</script>

<style>
</style>
